package co.za.itweb.itwebpro;

import java.util.ArrayList;
import java.util.List;


public class JSONHolder {
	
	
	public  List<JsonItems> _itemlist;
	private int _itemcount = 0;
	
	public JSONHolder()
	{
		_itemlist = new ArrayList<JsonItems>(0); 
	}
	
	
	int addItem(JsonItems item)
	{
		_itemlist.add(item);
		_itemcount++;
		return _itemcount;
	}
	JsonItems getItem(int location)
	{
		return _itemlist.get(location);
	}
	List<JsonItems> getAllItems()
	{
		return _itemlist;
	}
	int getItemCount()
	{
		return _itemcount;
	}

}
